package ch10_thread.thread;

/**
 * 线程ID，是从1开始的，JVM启动后，我们的子线程已不是2
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class ThreadId {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
        });
        System.out.println(Thread.currentThread().getId());
        System.out.println(thread.getId());
    }
}
